package org.jeecg.modules.demo.membertag.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.membermanagement.entity.MemberManagement;
import org.jeecg.modules.demo.membermanagement.mapper.MemberManagementMapper;
import org.jeecg.modules.demo.membertag.entity.MemberTag;
import org.jeecg.modules.demo.membertag.mapper.MemberTagMapper;
import org.jeecg.modules.demo.membertag.service.IMemberTagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 充值卡费用设置
 * @Author: jeecg-boot
 * @Date: 2022-01-14
 * @Version: V1.0
 */
@Service
public class MemberTagServiceImpl extends ServiceImpl<MemberTagMapper, MemberTag> implements IMemberTagService {
    @Autowired
    private MemberTagMapper memberTagMapper;

    @Override
    public List<MemberManagement> getMembersByTagId(String storeId, String tagId) {
        return memberTagMapper.getMembersByTagId(storeId,tagId);
    }

    @Override
    public List<String> getMembersIdByTagId(String storeId, String tagId) {
        return memberTagMapper.getMembersIdByTagId(storeId,tagId);
    }
}
